package com.s59.crm.api;

import com.s59.crm.Result;
import com.s59.crm.clue.entity.Clue;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * name:微服务名字
 * path:控制器映射路径
 */
@FeignClient(name = "clue-service", path = "/clues",fallback = ClueServiceApliFallback.class)
public interface ClueServiceApi {

    @GetMapping("/{id}")
    public Result<Clue> get(@PathVariable("id") Long id);
}
